<template>
  <div>
    <CodeCard v-bind="btnDesc">
      <sdn-breadcrumb separator="/">
        <sdn-breadcrumb-item :to="{ path: '/' }">首页</sdn-breadcrumb-item>
        <sdn-breadcrumb-item><a href="/">活动管理</a></sdn-breadcrumb-item>
        <sdn-breadcrumb-item>活动列表</sdn-breadcrumb-item>
        <sdn-breadcrumb-item>活动详情</sdn-breadcrumb-item>
      </sdn-breadcrumb>
      <template #annotation></template>
    </CodeCard>
  </div>
</template>

<script>


export default {
  components: {
    
  },
  data() {
    return {
      input: ''
    }
  },
  methods: {},
  setup() {
    const btnDesc = {
      title: "基础用法",
      describe: "适用广泛的基础用法。",
      codeBlock: `<sdn-breadcrumb separator="/">
        <sdn-breadcrumb-item :to="{ path: '/' }">首页</sdn-breadcrumb-item>
        <sdn-breadcrumb-item><a href="/">活动管理</a></sdn-breadcrumb-item>
        <sdn-breadcrumb-item>活动列表</sdn-breadcrumb-item>
        <sdn-breadcrumb-item>活动详情</sdn-breadcrumb-item>
      </sdn-breadcrumb>`,
      attrs: [
        {
          "name": "separator",
          "describe": "分隔符",
          "type": "string",
          "emun": "—",
          "default": "斜杠'/'"
        }, {"name": "separator-class", "describe": "图标分隔符 class", "type": "string", "emun": "—", "default": "-"}]
    };
    return {
      btnDesc,
    };
  },
};
</script>

<style scoped>
.demo {
  margin-bottom: 0.1rem;
  max-width: 50%;
}
</style>
